//
//  OrdersVC.swift
//  Xiaozihui
//
//  Created by 校企荟 on 2017/8/21.
//  Copyright © 2017年 校企荟. All rights reserved.
//

import UIKit

class OrdersVC: BaseVC {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        // Do any additional setup after loading the view.
    }
     
    override func setupUI() {
        let titles = ["全部","预约中","已预约","已完成","已取消"]
        var controllers = [Any]()
        for title in titles {
            let orderListVC = OrderListVC()
            controllers.append(orderListVC)
        }
        let rcs = MYSegmentView(frame: CGRect(x: 0, y: 64, width: ScreenWidth, height: ScreenHeight - 64), controllers: controllers, titleArray: titles, parentController: self, lineWidth: Float(26 * ScaleX), lineHeight: Float(2 * ScaleX))
        view.addSubview(rcs!)
    }
    

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
